package com.tbvtc.agriculturalcreditchainserver2025.vo.farmerVo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class FoodMessage {
    @Schema(description = "农作物id")
    private Integer id;
    @Schema(description = "农作物名字")
    private String name;
    @Schema(description = "用户手机")
    private String phone;
    @Schema(description = "农作物图片")
    private String cropImage;
    @Schema(description = "价格")
    private BigDecimal price;
    @Schema(description = "是否成熟")
    private Integer isMature;
    @Schema(description= "土地名称")
    private String landName;
    @Schema(description="创建时间",deprecated = true) //
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    @Schema(description = "农作物种类")
    private String cropCategory;

}
